//
//  NotificationTableViewCell.m
//  ChatDemo-UI2.0
//
//  Created by MAC mini on 16/1/22.
//  Copyright © 2016年 MAC mini. All rights reserved.
//

#import "NotificationTableViewCell.h"

@implementation NotificationTableViewCell
@synthesize leftLabel;
@synthesize centerLabel;
@synthesize rightLabel;
@synthesize dianImage;
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    // ignore the style argument and force the creation with style UITableViewCellStyleSubtitle
    self = [super initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:reuseIdentifier];
    if (self) {
        
        dianImage=[[UIImageView alloc]initWithFrame:CGRectMake(50, 5, 10, 10)];
        dianImage.layer.cornerRadius=5;
        dianImage.backgroundColor=RGBACOLOR(255, 31, 54, 1);
        dianImage.hidden=YES;
        [self.contentView addSubview:dianImage];
        
        leftLabel = [[UILabel alloc] initWithFrame:CGRectMake(60, 5, 150, 20)];
        leftLabel.font = [UIFont systemFontOfSize:15];
        leftLabel.backgroundColor = [UIColor clearColor];
        leftLabel.textAlignment = NSTextAlignmentLeft;
        [self.contentView addSubview:leftLabel];
        
        
        centerLabel = [[UILabel alloc] initWithFrame:CGRectMake(60, leftLabel.frame.origin.y + leftLabel.frame.size.height + 5,[UIScreen mainScreen].bounds.size.width-60-20, 15)];
        centerLabel.font = [UIFont systemFontOfSize:13];
        centerLabel.textColor = [UIColor grayColor];
        centerLabel.backgroundColor = [UIColor clearColor];
        centerLabel.textAlignment = NSTextAlignmentLeft;
        [self.contentView addSubview:centerLabel];
        
        rightLabel = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width-120, 5, 100, 20)];
        rightLabel.font = [UIFont systemFontOfSize:13];
        centerLabel.textColor = [UIColor grayColor];
        rightLabel.backgroundColor = [UIColor clearColor];
        rightLabel.textAlignment = NSTextAlignmentRight;
        [self.contentView addSubview:rightLabel];
    }
    return self;
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
